package com.platinadesign.axa.helper
{
	import com.platinadesign.axa.view.Page;
	import com.platinadesign.axa.vo.ConfigueData;

	public class ConfigureDataPaser
	{
		public function pase( xml : XML ) : ConfigueData
		{
			const pages : XMLList = xml.pages.page;
			const arr : Vector.<String> = new Vector.<String>();

			for each( var page : XML in pages )
			{
				arr.push( page.@url );
			}

			return new ConfigueData( arr, xml.music[ 0 ].@url );
		}
	}
}